const mongoose = require('mongoose')

const Schema  = mongoose.Schema
// 便签表
const RoleType = {
    userId: { type: Schema.Types.ObjectId, ref: 'user' }, // 用户id
    role: String, // 角色名称
    describe: String, // 角色描述
    content: String // 提示词
}

const RoleModel = mongoose.model('role', new Schema(RoleType))

// 模型user 将会对应users集合
module.exports = RoleModel